Skip to content

Minor fixes #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Minor fixes #687

wants to merge 1 commit into from

Conversation

alexflorisca
Copy link

  • Response in express of the form "res.send(status, message)" has been deprecated. Updated responses to use the updated format of "res.status(xxx).json(object)" or "res.status(xxx).end()"
  • Fix: If the :id attribute in the API does not evaluate to a valid mongoose ObjectID, it produces a Cast error.
  • Removed some unnecessary dependency injections where they were not being used.

- Response in express of the form "res.send(status, message)" has been deprecated. Updated responses to use the updated format of "res.status(xxx).json(object)" or "res.status(xxx).end()"
- Fix: If the :id attribute in the API does not evaluate to a valid mongoose ObjectID, it produces a Cast error.
- Removed some unnecessary dependency injections where they were not being used.
@JaKXz
Copy link
Collaborator

JaKXz commented Nov 27, 2014

Thanks for the PR @alexflorisca, but, it seems we have a slightly conflicting contribution here: #704

Perhaps these PRs should be merged, but then the separate changes be brought in different commits?

@alexflorisca
Copy link
Author

No probs. Looks like I screwed something up as the test build failed so feel free to merge the other one in and leave this one. I will try and add those in manually later.

@DaftMonk DaftMonk closed this Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants